package pri.hillchen.springbootstd.sso.config.mybatis;

import org.apache.ibatis.reflection.MetaObject;
import pri.hillchen.springbootstd.sso.common.util.IdWorker;

/**
 * Created by hillchen on 2017/10/20 0020.
 */
public class IdFieldFillHandler implements FieldFillHandler {
    @Override
    public void fillField(String fieldName, MetaObject metaObject) {
        metaObject.setValue(fieldName, IdWorker.getInstance().nextId());
    }
}
